<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>
<%
request.setCharacterEncoding("utf-8");
String qx="";
if(session.getAttribute("qx")!=null){
qx=(String)session.getAttribute("qx");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/css_menu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>
<title>无标题文档</title>

<script language="javascript">


function getObject(objectId) {
 if(document.getElementById && document.getElementById(objectId)) {
 // W3C DOM
 return document.getElementById(objectId);
 }
 else if (document.all && document.all(objectId)) {
 // MSIE 4 DOM
 return document.all(objectId);
 }
 else if (document.layers && document.layers[objectId]) {
 // NN 4 DOM.. note: this won't find nested layers
 return document.layers[objectId];
 }
 else {
 return false;
 }
}

function showHide(objname){
    var obj = getObject(objname);
    if(obj.style.display == "none"){
		obj.style.display = "block";
	}else{
		obj.style.display = "none";
	}
}
</script>
</head>
<base target="main" />
<body>
<div class="infobox">

	
</div>
<div class="menu">


<%
if(qx.equals("管理员")){
%>
		<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items1');" target="_self">班级管理</a></dt>
    <dd id="items1" style="display:none;">
        <ul>

	<li><a href='banji/banjiadd.jsp' target='main'>添加班级</a></li>
		<li><a href='banji/banjilist.jsp' target='main'>班级列表</a></li>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items2');" target="_self">学期管理</a></dt>
    <dd id="items2" style="display:none;">
        <ul>

	<li><a href='xueqi/xueqiadd.jsp' target='main'>添加学期</a></li>
		<li><a href='xueqi/xueqilist.jsp' target='main'>学期列表</a></li>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items3');" target="_self">学生管理</a></dt>
    <dd id="items3" style="display:none;">
        <ul>

	<li><a href='xuesheng/xueshengadd.jsp' target='main'>添加学生</a></li>
		<li><a href='xuesheng/xueshenglist.jsp' target='main'>学生列表</a></li>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items4');" target="_self">教师管理</a></dt>
    <dd id="items4" style="display:none;">
        <ul>

	<li><a href='jiaoshi/jiaoshiadd.jsp' target='main'>添加教师</a></li>
		<li><a href='jiaoshi/jiaoshilist.jsp' target='main'>教师列表</a></li>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items5');" target="_self">管理员管理</a></dt>
    <dd id="items5" style="display:none;">
        <ul>

	<li><a href='gly/glyadd.jsp' target='main'>添加管理员</a></li>
		<li><a href='gly/glylist.jsp' target='main'>管理员列表</a></li>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->



<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items6');" target="_self">课程管理</a></dt>
    <dd id="items6" style="display:none;">
        <ul>

	<li><a href='kecheng/kechengadd.jsp' target='main'>添加课程</a></li>
		<li><a href='kecheng/kechenglist.jsp' target='main'>课程列表</a></li>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->



    <!-- Item 1 Strat -->
    <dl>

        <dt><a href="###" onclick="showHide('items100');" target="_self">公告管理</a></dt>
        <dd id="items100" style="display:none;">
            <ul>

                <li><a href='gonggao/gonggaoadd.jsp' target='main'>添加公告</a></li>
                <li><a href='gonggao/gonggaolist.jsp' target='main'>公告列表</a></li>
            </ul>
        </dd>
    </dl>
    <!-- Item 1 End -->

    <!-- Item 1 Strat -->
    <dl>

        <dt><a href="###" onclick="showHide('items101');" target="_self">活动室管理</a></dt>
        <dd id="items101" style="display:none;">
            <ul>

                <li><a href='huodongjiaoshi/add.jsp' target='main'>添加活动室</a></li>
                <li><a href='huodongjiaoshi/list.jsp' target='main'>活动室列表</a></li>
            </ul>
        </dd>
    </dl>
    <!-- Item 1 End -->

    <!-- Item 1 Strat -->
    <dl>

        <dt><a href="###" onclick="showHide('items102');" target="_self">预约记录管理</a></dt>
        <dd id="items102" style="display:none;">
            <ul>

                <li><a href='yuyue/add.jsp' target='main'>添加预约记录</a></li>
                <li><a href='yuyue/list.jsp' target='main'>预约记录列表</a></li>
            </ul>
        </dd>
    </dl>
    <!-- Item 1 End -->
<% }%>

<%
if(!qx.equals("学生")){
%>
		<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items11');" target="_self">课程安排管理</a></dt>
    <dd id="items11" style="display:none;">
        <ul>

<%
if(qx.equals("管理员")){
%>
	<li><a href='kcap/kcapadd.jsp' target='main'>添加课程安排</a></li>
		<li><a href='kcap/kcaplist.jsp' target='main'>课程安排列表</a></li>
		
		<% }else {%>
				<li><a href='kcap/mykcaplist.jsp' target='main'>我的课程安排</a></li>
				
				<% }%>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
<% }%>

<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items7');" target="_self">成绩管理</a></dt>
    <dd id="items7" style="display:none;">
        <ul>

<%
if(!qx.equals("学生")){
%>
	<li><a href='chengji/chengjiadd.jsp' target='main'>添加成绩</a></li>
		<li><a href='chengji/chengjilist.jsp' target='main'>成绩列表</a></li>
		<% }else{%>
				<li><a href='chengji/mychengjilist.jsp' target='main'>我的成绩</a></li>
				
				<% }%>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
<!-- Item 1 Strat -->
<dl>

<dt><a href="###" onclick="showHide('items8');" target="_self">个人信息</a></dt>
    <dd id="items8" style="display:none;">
        <ul>

<%
if(qx.equals("管理员")){
%>
	<li><a href='gly/modify.jsp' target='main'>个人信息</a></li>
	<% }%>
	
<%
if(qx.equals("学生")){
%>
	<li><a href='xuesheng/modify.jsp' target='main'>个人信息</a></li>
	<li><a href='xuesheng/modifyupdate.jsp?keyid=<%=session.getAttribute("id")%>' target='main'>修改个人信息</a></li>

	<% }%>
	
	
<%
if(qx.equals("教师")){
%>
<li><a href='jiaoshi/modify.jsp' target='main'>个人信息</a></li>
	<% }%>
        </ul>
    </dd>
</dl>
<!-- Item 1 End -->
</div>
</body>
</html>
